import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import pointView from '@/views/point-view'
import BindDevice from '@/views/bind-device'
import BindAsset from '@/views/bind-asset'
import KnowledgeFile from '@/views/knowledge-file'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: 'h5',
  routes: [
    {
      path: '/',
      name: 'pointView',
      component: pointView,
      meta: { title: '点位图' }
    },
    {
      path: '/test',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/bindDevice',
      name: 'bindDevice',
      component: BindDevice,
      meta: { title: '绑定信息', keepAlive: true }
    },
    {
      path: '/bindAsset',
      name: 'bindAsset',
      component: BindAsset,
      meta: { title: '绑定信息', keepAlive: true }
    },
    {
      path: '/knowledgeFile',
      name: 'knowledgeFile',
      component: KnowledgeFile,
      meta: { title: '文件下载' }
    }
  ]
})
